package com.codechen.scaffold.books.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.codechen.scaffold.books.domain.entity.Book;
import com.codechen.scaffold.books.domain.entity.BookWithUser;
import com.codechen.scaffold.books.domain.req.BookQueryRequest;
import com.codechen.scaffold.books.domain.req.BookRentQueryRequest;

import java.util.List;


public interface IBookWithUserService extends IService<BookWithUser> {

    void update(BookWithUser bookWithUser);


    void deleteRecord(BookWithUser bookWithUser);

    void deleteRecords(List<BookWithUser> bookWithUsers);


    IPage<BookWithUser> queryList(Page<BookWithUser> page, BookRentQueryRequest queryRequest);
}
